package eu.dominicum.clavis.ui.web.jsf.view.beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import java.util.List;

/**
 * Backing for the main view in Clavis.
 *
 * @author Harry Klerks
 * @since 0.1M1
 */
@ManagedBean(name = "clavis")
@ViewScoped
public class ClavisBean extends AbstractBaseBean {

    private List albums;

    @Override
    public void beforePhase(PhaseEvent event) {

        if (event.getPhaseId() == PhaseId.RENDER_RESPONSE) {

        }
    }

    public List getAlbums() {
        return albums;
    }

    public void setAlbums(List albums) {
        this.albums = albums;
    }
}
